home *** CD-ROM | disk | FTP | other *** search
/ The Programmer Disk / The Programmer Disk (Microforum).iso / xpro / extra / pro13 / gettime.c < prev    next >
Text File  |  1993-02-01  |  256b  |  18 lines

  1. /*
  2.     gettime.C
  3.  
  4.     Copyright (C) 1993, Geoff Friesen B.Sc.
  5.     All rights reserved.
  6. */
  7.  
  8. #define    INCL_GETTIME
  9.  
  10. void gettime (struct time *timep)
  11. {
  12.    asm mov ah, 2ch
  13.    asm int 21h
  14.  
  15.    asm mov bx, timep
  16.    asm mov [bx], cx
  17.    asm mov [bx+2], dx
  18. }